<?php

/**
 * VColaboradorLogic
 * @package model
 * @subpackage logic
 * 
 */
class VColaboradorLogic extends VLogicModel {

    public function __construct() {
        parent::__construct(new VColaboradorDAO());
    }
    
    public function colaboradorSemUsuarioSistema($orderby = null, $objectCollection = null){
        
        $where = 'ide_colaborador 
                    NOT IN (
                        SELECT ide_colaborador FROM siacof.view_usuario_siacof
                    )';
        
        $listColaboradores = $this->listar($where, $orderby, $objectCollection);

        if (!$listColaboradores) {
            return null;
        }

        return $listColaboradores;
    }
    
}
?>